Naive Set Theory

Sets are the one of the most fundamental concepts in mathematics. Before diving deep into the set theory, we will start with a very non-rigorous introduction to the set theory.

Classically, a set is collection of things. These things are called elements or members of the set. For example, the set of all natural numbers is a set. A single natural number is an element of this set. Generally we are representing sets with capital letters and elements with small letters. For example, we can say that

Definition of a Set

We can define a set in two different ways. The first one is just listing the elements of the set. For example, the set of all possible outcomes of a dice roll can be defined as:

The second way to define a set is by using a property that the elements of the set satisfy. For example, the set of all even numbers can be defined as:

or in more general form:

where is a property that the elements of the set satisfy.

Set Equality

Two sets are equal if they have the same elements. For example, the sets and are equal because they have the same elements. We can write this as . If two sets are not equal, we can write this as .

Subsets

A set is a subset of a set if every element of is also an element of . We denote this as . Formally, we can define the subset relation as follows:

Set Operations

A union of two sets and is a set that contains all the elements that are in or in or in both. We denote the union of two sets and as . Formally, we can define the union of two sets as follows:

An intersection of two sets and is a set that contains all the elements that are in and in at the same time. We denote the intersection of two sets and as . Formally, we can define the intersection of two sets as follows:

A difference of two sets and is a set that contains all the elements that are in but not in . We denote the difference of two sets and as . Formally, we can define the difference of two sets as follows:

A cartesian product of two sets and is a set that contains all the possible pairs of elements where the first element is from and the second element is from . We denote the cartesian product of two sets and as . Formally, we can define the cartesian product of two sets as follows:

Relations and Functions

Cardinality

Countable and Uncountable Sets

Infinite Sets

Axiomatic Set Theory

Russell's Paradox